(C) 1996 AROS - The Amiga Replacement OS


NAME
APTR AllocMem()
SYNOPSIS
ULONG byteSize
ULONG requirements

LOCATION
In SysBase at offset 33
FUNCTION
Allocate some memory from the sytem memory pool with the given requirements.

INPUTS
byteSize
Number of bytes you want to get
requirements
Type of memory
RESULT
A pointer to the number of bytes you wanted or NULL if the memory couldn't be allocated

NOTES
The memory is aligned to sizeof(struct MemChunk). All requests are rounded up to a multiple of that size.

EXAMPLE
mytask=(struct Task *)AllocMem(sizeof(struct Task),MEMF_PUBLIC|MEMF_CLEAR);

BUGS
SEE ALSO
FreeMem()
INTERNALS
HISTORY
12.05.1997 aros
Fixed all headers
19.03.1997 digulla
Removed log
10.01.1997 ldp
Added <aros/libcall.h>
01.01.1997 ldp
Committed Amiga native (support) code

Changed clib to proto

10.12.1996 aros
Moved all #include's in the first column so makedepend can see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
19.10.1996 aros
Include <aros/machine.h> instead of machine.h
13.09.1996 digulla
Use IPTR
23.08.1996 digulla
Began work on ressource tracking
16.08.1996 digulla
Added debug output
13.08.1996 digulla
Replaced __AROS_LA by __AROS_LHA Replaced some __AROS_LH*I by __AROS_LH* Sorted and added includes
01.08.1996 digulla
Added standard header for all files
01.08.1996 digulla
Added copyright notics and made headers conform
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS